package com.zero.simplefactory.factory;

import com.zero.simplefactory.pokemon.Pokemon;
import com.zero.simplefactory.pokemon.impl.Pikachu;
import com.zero.simplefactory.pokemon.impl.Totodile;

public class PokemonFactory {
    public static Pokemon createPokemon(int condition){
        Pokemon pokemon = null;
        if (condition == 1){
            pokemon = new Pikachu();
        }else if (condition == 2) {
            pokemon = new Totodile();
        }
        return pokemon;
    }
}
